package com.waterai.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.util.Date;

@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class UserExcel {
    @ExcelProperty(value = "ID(警告：ID不可修改，新增用户也不需要填写ID)", index = 0)
    @ColumnWidth(0)
    private Long id;
    @ExcelProperty(value = "用户名", index = 1)
    private String name;
    @ExcelProperty(value = "密码", index = 2)
    private String pwd;
    @ExcelProperty(value = "创建时间", index = 3)
    private Date createTime;
    @ExcelProperty(value = "更新时间", index = 4)
    private Date updateTime;
}
